package com.njzxw.yoga.yogaApi.server;

import com.njzxw.fs.commonutil.web.BaseServer;
import com.njzxw.fs.commonutil.web.ReturnMap;
import com.njzxw.yoga.yogaApi.bean.CityInfoBean;
import com.njzxw.yoga.yogaApi.repository.CityInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@Service
public class CityInfoServer  extends BaseServer  {

    @Autowired
    CityInfoRepository cityInfoRepository;

    public ReturnMap getCityList(HttpServletRequest request, HttpServletResponse response, CityInfoBean cityInfoBean) {
        returnMap.setDataMaps(cityInfoRepository.getCityList(cityInfoBean));
        return returnMap.getSucceeReturnMap();
    }
}
